package cn.tedu.mall.seckill.mapper;

import cn.tedu.mall.pojo.seckill.vo.SeckillSkuVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SeckillSkuMapper {
    @Select("select * from seckill_sku where spu_id=#{spuId}")
    List<SeckillSkuVO> selectSkuBySpuId(@Param("spuId") Long spuId);

    @Select("select * from seckill_sku")
    List<SeckillSkuVO> selectAll();
}
